%my_RGBSplit Splits the RGB channels of the images in separate images.
function [ imgR, imgG, imgB ] = my_RGBSplit( imgRGB )
 
%Create 3 copies of the original image
imgR = imgRGB; imgG = imgRGB; imgB = imgRGB;

%Clear the complementary channels of each copy
imgR(:,:,2:3) = 0;
imgG(:,:,1) = 0; imgG(:,:,3) = 0;
imgB(:,:,1:2) = 0;

end

